package com.aoip.telemetry.telemetry.configureui.business.query.report.controller;

import com.aoip.telemetry.telemetry.configureui.business.query.report.service.ReportStatisticService;
import com.aoip.telemetry.telemetry.configureui.common.core.controller.BaseController;
import com.aoip.telemetry.telemetry.configureui.common.core.page.TableDataInfo;
import com.aoip.telemetry.telemetry.entity.common.ReportStatisticsEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 上报统计查询
 *
 * @author chenbai
 * @version 1.0
 * @date 2022/1/7 16:43
 */
@RestController
public class ReportStatisticsController extends BaseController {

    @Resource
    private ReportStatisticService service;

    @GetMapping("/v1/GET/report/statistic/page")
    public TableDataInfo page(ReportStatisticsEntity entity) {
        startPage();
        List<ReportStatisticsEntity> list = service.list(entity);
        return getDataTable(list);
    }
}
